//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet
{
    class ExternalSheet: Worksheet
    {
        public ExternalSheet(ExternalWorkbook book, string name): base (book, name)
        {
            _book = book;
        }
        private readonly ExternalWorkbook _book;
        public ExternalWorkbook Book
        {
            get { return _book; }
        }



        internal void GetData(ExternalSheetData data)
        {
            foreach (ExternalRow row in data.Rows)
                foreach (ExternalCell cell in row.Cells)
                {
                    this[cell.Ref].Value = cell.Value;
                }
        }
    }
}
